/*
 * @Author: your name
 * @Date: 2021-01-16 15:54:38
 * @LastEditTime: 2021-01-16 20:12:35
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \egg-RESTfulAPI\app\model\baseSegmentAndPointModel.js
 */

module.exports = app => {
    const mongoose = app.mongoose

    const BaseSegmentAndPointManagerSchema = new mongoose.Schema({
        mapName: { type: String, unique: true },
        isDefault: { type: Boolean },
    }, { timestamps: { createdAt: 'created', updatedAt: 'updated' }, usePushEach: true })

    return mongoose.model('BaseSegmentAndPointManagerModel', BaseSegmentAndPointManagerSchema)

}